{extend name="base" /}
{block name="title"}
<title>修改资料-{$site_config.site_title}</title>
{/block}
{block name="body"}
		<header class="page-header1">
			<a href="javascript:;" onClick="javascript:history.back(-1);"><img src="__STATIC__/img/back02.png" class="back_img" style="float:left;"/></a>
			<h3>修改资料</h3>
		</header>
		<form id="h-form">
		<div class="modify_data">
			<a href="{:url('home/user/changeMobile')}"><div class="modify_data_list" style="border-bottom:8px solid #e8e8e8;">
					<div class="modify_data_list01" style="border:none;">
						<div class="modify_data_list01_phone">手机号</div>
						<div class="modify_data_list01_phone_number">{$user_info.mobile}(已绑定)</div>
						<div class="modify_data_list01_jump_right">
							<img src="__STATIC__/img/mine_chongzhibao_icon04.png" class="modify_data_list01_phone_img"/>
						</div>
					</div>
			</div></a>
			<div class="modify_data_list">
					<div class="modify_data_list01">
						<div class="modify_data_list01_phone">昵称</div>
						<div class="modify_data_list01_phone_number">
							<input type="text" class="input_name" placeholder="输入新昵称" name="user_name" value="{$user_info.user_name}" />
						</div>
						<!--<div class="modify_data_list01_jump_right">
							<img src="__STATIC__/img/mine_chongzhibao_icon04.png" class="modify_data_list01_phone_img"/>
						</div>-->
					</div>
					<div class="modify_data_list01">
						<div class="modify_data_list01_phone">原始密码</div>
						<div class="modify_data_list01_phone_number">
							<input type="password" class="input_original" placeholder="输入原始密码" name="old_pwd" />
						</div>
						<!--<div class="modify_data_list01_jump_right">
							<img src="__STATIC__/img/mine_chongzhibao_icon04.png" class="modify_data_list01_phone_img"/>
						</div>-->
					</div>
					<div class="modify_data_list01">
						<div class="modify_data_list01_phone">新密码</div>
						<div class="modify_data_list01_phone_number">
							<input type="password" class="input_new" placeholder="输入新密码" name="new_pwd"/>
						</div>
						<!--<div class="modify_data_list01_jump_right">
							<img src="__STATIC__/img/mine_chongzhibao_icon04.png" class="modify_data_list01_phone_img"/>
						</div>-->
					</div>
					<div class="modify_data_list01">
						<div class="modify_data_list01_phone">确认密码</div>
						<div class="modify_data_list01_phone_number">
							<input type="password" class="input_confirm" placeholder="输入确认密码" id="input_confirm" name="re_new_pwd"/>
						</div>
						<!--<div class="modify_data_list01_jump_right">
							<img src="__STATIC__/img/mine_chongzhibao_icon04.png" class="modify_data_list01_phone_img"/>
						</div>-->
					</div>
			</div>
			<div class="modify_data_inputs">
				<div class="modify_data_input btn_confirm">
					<div id="h-submit" class="btn_modify" style="padding:10% 0;">确认修改</div>
				</div>
			</div>
		</div>
		</form>
		<script type="text/javascript">
	    window.onload =function()
	    {
	        document.getElementById("h-submit").style.backgroundImage ="url(__STATIC__/img/btn_confirm01.png)";
	        document.getElementById("h-submit").style.backgroundSize ="100% 100%";
	         
	        //鼠标悬停在按钮上时判断。
	        document.getElementById("input_confirm").onkeyup = function()
	        {
	            if(document.getElementById("input_confirm").value=="")
	            {
	                document.getElementById("h-submit").style.backgroundImage ="url(__STATIC__/img/btn_confirm01.png)";
	                document.getElementById("h-submit").style.backgroundSize ="100% 100%";
	                document.getElementById("h-submit").innerHTML="确定";
	            }else
	            {
	                document.getElementById("h-submit").style.backgroundImage ="url(__STATIC__/img/btn_confirm02.png)";
	                document.getElementById("h-submit").style.backgroundSize ="100% 100%";
	                document.getElementById("h-submit").style.color ="#fff";
	                document.getElementById("h-submit").innerHTML="确定";
	            }
	        }
	    }
	    </script>
    {include file="public/menu" /}
    {include file="public/submit" /}
{/block}

